class User < ActiveRecord::Base

  has_many  :rentals

  validates_presence_of :name
  validates_format_of :phone, :with => /\d{2}-?\d{4}-?\d{4}$/,
    :message => 'O telefone deve estar no formato DD-DDDD-DDDD'

end
